package adapterpattern;
/**
 * AdvancedMedia 播放器的适配器 为了继承MediaPlayer的功能
 * AdvancedMediaAdapter.java
 * @author yaojinshan
 * @since 2017年6月19日 上午9:53:00
 *
 */
public class AdvancedMediaAdapter implements AdvancedMediaPlayer{
	public MediaPlayer mediaPlayer;

	public AdvancedMediaAdapter() {
		this.mediaPlayer = new Mp3Player();
	}

	@Override
	public void playMp4(String fileName) {
		new Mp4Player().playMp4(fileName);
	}

	@Override
	public void playVlc(String fileName) {
		new VlcPlayer().playVlc(fileName);
	}
	
}
